package com.bw.wxy.common;

import android.util.Log;

import com.blankj.utilcode.util.EncryptUtils;
import com.blankj.utilcode.util.LogUtils;

import java.util.Arrays;

public class MD5Utils {
    private static final String TAG = "MD5Utils";
    public static String createSign(String oldstr){
        if (oldstr.isEmpty()){
            return "";
        }
        Log.i(TAG, "oldstr: "+oldstr);
        char[] chars = oldstr.toCharArray();
        LogUtils.json(chars);
        Arrays.sort(chars);
        String str = new String(chars);
        Log.i(TAG, "str: "+str);
        return EncryptUtils.encryptMD5ToString(str+"tamboo").toLowerCase();
    }
}

